import {createRouter, createWebHistory} from 'vue-router'


const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            name: 'HelloWorld',
            component: () => import('@/components/HelloWorld.vue'),
        },
        {
            path: '/home',
            name: 'Home',
            component: () => import('@/components/Home.vue')
        },
        {
            path: '/login',
            name: 'Login',
            component: () => import('@/components/Login.vue')
        },
        {
            path: '/flex-demo',
            name: 'FlexDemo',
            component: () => import('@/components/FlexDemo.vue')
        },
        {
            path: '/WebSocket',
            name: 'WebSocket',
            component: () => import('@/components/WebSocket.vue')
        },
        {
            path: '/useVue2',
            name: 'useVue2',
            component: () => import('@/components/useVue2.vue')
        },
        {
            path: '/watchAndcomputed',
            name: 'watchAndcomputed',
            component: () => import('@/components/WatchAndComputed.vue')
        },
        {
            path: '/Timer',
            name: 'Timer',
            component: () => import('@/components/Timer.vue')
        },
    ]

})

export default router